//
//  MuYingSwiftColor.swift
//  MuYing
//
//  Created by tbb on 2019/7/18.
//  Copyright © 2019 TBB. All rights reserved.
//

import Foundation
import UIKit

func UIColorFromHexAndAlpha(rgbValue: UInt,alpha:CGFloat) -> UIColor {
    return UIColor(
        red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
        green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
        blue: CGFloat(rgbValue & 0x0000FF) / 255.0,
        alpha: alpha
    )
}

func UIColorFromHex(rgbValue: UInt) -> UIColor {
    return UIColor(
        red: CGFloat((rgbValue & 0xFF0000) >> 16) / 255.0,
        green: CGFloat((rgbValue & 0x00FF00) >> 8) / 255.0,
        blue: CGFloat(rgbValue & 0x0000FF) / 255.0,
        alpha: CGFloat(1.0)
    )
}
//let appThemeColor = UIColorFromHex(rgbValue: 0x79C4C7);
let appThemeColor = UIColorFromHex(rgbValue: 0xFA969D);
let appMainTitleColor = UIColorFromHex(rgbValue: 0x414141);
let appSubTitleColor = UIColorFromHex(rgbValue: 0x686868);
let appThreeTitleColor = UIColorFromHex(rgbValue: 0xCBCBCB);
let appLineViewColor = UIColorFromHex(rgbValue: 0xE6E6E6);

let appTableViewBGColor = UIColorFromHex(rgbValue: 0xFAFAFA);

#warning("swift 接口声明")
//关于我们url
let kGET_SLIDESHOW_ABOUT_US_URL = "/api/slideshow/about/us"
